package com.example.demo.service;

import com.example.demo.main.Admin;
import com.example.demo.mapper.AdminMapper;
import com.example.demo.service.Imp.SelectAllOfSQL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UseSQLOfAdmin implements SelectAllOfSQL {

    @Autowired
    private AdminMapper adminMapper;


    @Override
    public List<Admin> selectAll() {
        return adminMapper.selectAll();
    }
}
